package com.wanmait.gohome.mapper;

import com.wanmait.gohome.pojo.News;

import java.util.List;

public interface NewsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(News record);

    int insertSelective(News record);//后台添加文章

    News selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKey(News record);

    List<News> selectAll();

    int deleteNews(Integer id);

    void updateNews(News news);
}